package com.myjoje.bean.system;

import com.myjoje.base.BaseUuidBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "sy_message")
public class MessageBean extends BaseUuidBean {

    //社团
    public final static String FLAG_CLUB = "1";
    //德育
    public final static String FLAG_MORAL = "2";

    @Column(columnDefinition = "varchar(255) COMMENT '标题'")
    private String title;

    @Column(columnDefinition = "text COMMENT '内容'")
    private String content;

    @Column(columnDefinition = "varchar(10) COMMENT '状态0-未读，1-已读，2-已删除'")
    private String status;

    @Column(columnDefinition = "varchar(40) COMMENT '发送人id'")
    private String sendUserId;

    @Column(columnDefinition = "varchar(40) COMMENT '发送人用户名'")
    private String sendUsername;

    @Column(columnDefinition = "varchar(40) COMMENT '发送时间'")
    private String sendTime;

    @Column(columnDefinition = "varchar(40) COMMENT '接收人id'")
    private String receiveUserId;

    @Column(columnDefinition = "varchar(40) COMMENT '读取时间'")
    private String readTime;


    @Column(columnDefinition = "varchar(40) COMMENT '系统标识，1-社团，2-德育'")
    private String flag;

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public String getSendUsername() {
        return sendUsername;
    }

    public void setSendUsername(String sendUsername) {
        this.sendUsername = sendUsername;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getSendUserId() {
        return sendUserId;
    }

    public void setSendUserId(String sendUserId) {
        this.sendUserId = sendUserId;
    }

    public String getReceiveUserId() {
        return receiveUserId;
    }

    public void setReceiveUserId(String receiveUserId) {
        this.receiveUserId = receiveUserId;
    }

    public String getReadTime() {
        return readTime;
    }

    public void setReadTime(String readTime) {
        this.readTime = readTime;
    }
}
